﻿@model IEnumerable<Pr0ject0.Models.ReferenceModel>

@{
    ViewBag.Title = "Summary";
}

<h2>Summary</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.company)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.phone)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.isCalled)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.company)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.isCalled)
        </td>
    </tr>
}

</table>

<form method="post" action="@Url.Action("Summary", new {id = ViewBag.applicationId})">
    @Html.Hidden("str", "accept");
    <input type="submit" value="Accept" />
</form>

<form method="post" action="@Url.Action("Summary", new {id = ViewBag.applicationId})" >
    @Html.Hidden("str", "reject");
    <input type="submit" value="Reject" />
</form>    

<form method="post" action="@Url.Action("Summary", new {id = ViewBag.applicationId})" >
    @Html.Hidden("str", "wait");
    <input type="submit" value="Wait" />
    </form>
